//
//  WBNumberView.h
//  365YP
//
//  Created by 文彬 on 2017/3/30.
//  Copyright © 2017年 文彬. All rights reserved.
//

#import <UIKit/UIKit.h>

@class WBNumberView;

@protocol WBNumberViewDelegate <NSObject>

- (void)minusClicked:(WBNumberView*)numberView;
- (void)addClicked:(WBNumberView*)numberView;

@end

@interface WBNumberView : UIView

@property (weak, nonatomic) id<WBNumberViewDelegate> delegate;
@property (assign, nonatomic) BOOL zearoModel; //是否可以减到0（只显示一个加号）
@property (assign, nonatomic) BOOL showZearoModel; //是否可以减到0（正常显示，数字显示0）
@property (assign, nonatomic,readonly) int currentNum;
@property (assign, nonatomic) BOOL canInputNum; //是否可以直接输入数量
@property (assign, nonatomic) int minCount; //最小起加数量

- (void)setSelect:(int)index;

- (void)setNumberColor:(UIColor*)color;

@end
